package com.gxa.modules.mapper.accessmapper;

import com.gxa.common.R;
import com.gxa.modules.pojo.AlarmRules;
import com.gxa.modules.pojo.Organizational;
import com.gxa.modules.pojo.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResourceMapper {

    public List<Resource> selectResource(@Param("resourceName") String resourceName,
                                         @Param("resourceLevel") String resourceLevel,
                                         @Param("startIndex") int statrIndex,
                                         @Param("endIndex") int endIndex);
    public List<Resource> selectResourceByPids(@Param("pids") long pids);

    public int insertResource(Resource resource);

    public int deleteResource(@Param("resourceId") String resourceId);
    public int deletePermissions(@Param("resourceId") String resourceId);

    public int updateResource(Resource resource);
}
